home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 5
/
Apprentice-Release5.iso
/
Source Code
/
C++
/
Snippets
/
SuperSplash 1.0d1
/
sources
/
gVariables.h
< prev
next >
Wrap
C/C++ Source or Header
|
1995-10-03
|
1KB
|
41 lines
#pragma once
/*
* gVariables.h
*
* SuperSplash
* ^^^^^^^^^^^
*
* Declaration of global variables used by application.
* Tuck them all into one struct which can then be accessed app. wide.
* Do this to cut down on global name–space polution & keep track of
* program globals (they are easy to find if they are all in one struct!)
* © Andrew Nemeth (where applicable), Warrimoo Australia 1995
*
* File created: 3 Oct 95.
* Modified: 3 Oct 95.
*/
struct myGlobalStruct {
Boolean boolDone;
// Values that can be adjusted by other application code to change
// the behavior of the MainEventLoop.
//
// Rules of thumb:
//
// Increase 'xxxRunQuantum' (and decrease 'xxxSleepQuantum') when:
// The application has many threads running that need time
//
// Decrease 'xxxRunQuantum' when:
// Sending AppleEvents to other applications
// Launching other applications
// Running in the background
unsigned long foregroundRunQuantum,
foregroundSleepQuantum,
backgroundRunQuantum,
backgroundSleepQuantum;
};
extern struct myGlobalStruct * gptrGlobalsRec;